Pattern detection methods and systems and face detection methods and systems

ABSTRACT

Systems and methods for object or pattern detection that use a nonlinear support vector (SV) machine are described. In the illustrated and described embodiment, objects or patterns comprising faces are detected. The decision surface is approximated in terms of a reduced set of expansion vectors. In order to determine the presence of a face, the kernelized inner product of the expansion vectors with the input pattern are sequentially evaluated and summed, such that if at any point the pattern can be rejected as not comprising a face, no more expansion vectors are used. The sequential application of the expansion vectors produces a substantial saving in computational time.

RELATED APPLICATION

[0001] This application is a continuation of and claims priority to U.S. patent application Ser. No. 09/721,399, the disclosure of which is incorporated by reference herein.

TECHNICAL FIELD

[0002] This invention relates to pattern detection methods and systems, and, more particularly, to face detection methods and systems.

BACKGROUND

[0003] In recent years, problems associated with general visual pattern recognition or object recognition/classification have received an increasing amount of attention in the computer vision community. In many cases the only feasible approach is to represent a class of patterns/objects (e.g. faces) by a set of learned examples. The complexity of some of the class of objects/patterns is often such that an extremely large set of examples is needed in order to learn all the potential variations (facial expression/pose etc). Additionally, typically the data points associated with the examples belong to some high-dimensional space. Thus, there has been and continues to be a need for pattern recognition techniques that can handle large data sets in high dimensional spaces.

[0004] One particular type of visual pattern is a face. Typically, face detection represents a very computationally intensive task that involves testing a digitized image for the location of a face by placing an observation window at all scales, in all positions, and at all orientations on the image, and ascertaining whether a face is present within the observation window. This process, however, can be quite slow. Exemplary face detection techniques are described in the following references, to which the reader is referred for additional material: Osuna et al., Training support vector machines: An application to face detection, Proc. Computer Vision and Pattern Recognition '97, pages 130-136, 1997; and Rowley et al., Neural network-based face detection, Proc. IEEE Conf. On Computer Vision and Pattern Recognition, pages 203-207, IEEE, 1996.

[0005] Nonlinear Support Vector Machines (SVMs) are known to lead to excellent classification accuracies on a wide range of tasks, including face detection. The following references describe non-linear SVMs and their various characteristics: Schölkopf et al., Advances in Kernel Methods—Support Vector Learning, MIT Press, Cambridge, Mass., 1999; and Vapnik, The Nature of Statistical Learning Theory Statistical Learning Theory, Springer, N.Y. 1995.

[0006] Nonlinear SVMs are, however, usually slower classifiers than neural networks. The reason for this is that their run-time complexity is proportional to the number of support vectors (SVs), i.e. to the number of training examples that the SVM algorithm utilizes in the expansion of the decision function. While it is possible to construct classification problems, even in high-dimensional spaces, where the decision surface can be described by two SVs only, it is normally the case that the set of SVs forms a substantial subset of the whole training set.

[0007] There has been a fair amount of research on methods for reducing the runtime complexity of SVMs. Exemplary articles includes the following: Burges, Simplified support vector decision rules, Proceedings, 13^(th) Intl. Conf. On Machine Learning, pages 71-77, San Mateo, Calif., 1996; and Schölkopf et al., Input space vs. feature space in kernel-based methods, IEEE Transactions on Neural Networks, 10(5):1000-1017, 1999. Yet, the run time complexity of SVMs continues to be an issue in their efficient employment for pattern recognition or classification.

[0008] Accordingly, this invention arose out of concerns associated with improving the systems and methods that are utilized for pattern recognition or classification. Particular concerns giving rise to the invention were those associated with improving the efficiencies with which the evaluation of support vector expansions is utilized for pattern classification, particularly where the patterns comprise faces.

SUMMARY

[0009] Systems and methods for object or pattern detection that use a nonlinear support vector (SV) machine are described. In the illustrated and described embodiment, objects or patterns comprising faces are detected. The decision surface (in the high dimensional data space) is approximated in terms of a reduced set of expansion vectors. In order to determine the presence of a face, the kernelized inner products of the reduced set vectors with the input pattern are sequentially evaluated and summed, such that if at any point the pattern can be rejected as not comprising a face, no more reduced set vectors are used. The sequential application of the reduced set vectors produces a substantial saving in computational time.

BRIEF DESCRIPTION OF THE DRAWINGS

[0010]FIG. 1 is a diagram that illustrates the concept of an image and image patches in connection with a classifier, and is useful in understanding the described embodiment.

[0011]FIG. 2 is a graph that illustrates a 2-dimensional space having a number of points distributed therethrough in accordance with an example that is useful in understanding the principles upon which the described embodiment rests.

[0012]FIG. 3 is a block diagram that describes a computer system that is suitable for use in implementing the described embodiment.

[0013]FIG. 4 is a flow diagram that describes steps in a method in accordance with the described embodiment.

[0014]FIG. 5 is a flow diagram that describes steps in a method in accordance with the described embodiment.

[0015]FIG. 6 is a diagram that illustrates exemplary reduced set vectors.

[0016]FIG. 7 is a graph that describes the number of reduced set vectors that were utilized to evaluate a patch for a full support vector machine, a reduced set vector machine, and a vector machine in accordance with the described embodiment.

[0017]FIG. 8 is an illustration that shows the patches of an input image that remain after 1, 10, 20, and 30 sequential reduced set evaluations in accordance with the described embodiment.

[0018]FIG. 9 is an illustration that is useful in understanding certain principles of the described embodiment.

[0019]FIG. 10 shows two graphs that compare the accuracy of different detection methods.

DETAILED DESCRIPTION Overview

[0020] Systems and methods for object or pattern detection that use a nonlinear support vector (SV) machine are described. In the illustrated and described embodiment, objects or patterns comprising faces are detected. The decision surface is approximated in terms of a reduced set of expansion vectors. In order to determine the presence of a face, the kernelized inner product of the expansion vectors with the input pattern are sequentially evaluated and summed, such that if at any point the pattern can be rejected as not comprising a face, no more reduced set vectors are used. The sequential application of the reduced set vectors produces a substantial saving in computational time. Advantageously, the reduced set vectors are applied in a predetermined order.

Exemplary System

[0021] Before the mathematics of the inventive approach are described, the following description is given to provide the reader with a conceptual understanding of the principles upon which the invented techniques rest.

[0022]FIG. 1 shows an exemplary system known as a classifier 10 that is implemented as a support vector machine (SVM). Classifier 10 is typically implemented in software and is used to classify portions of a digitized image. The classifier is a trained learning machine that, based upon examples that are used to train the classifier, can make intelligent decisions about whether portions of a digitized image appear to be certain objects or patterns or not (e.g. faces and non-faces).

[0023] A digital image, such as the one shown at 12, is typically partitioned into individual n×n “patches” 14 which overlap. The overlapping patches 14 are then provided to classifier 10 which is programmed to ascertain whether a particular patch contains an object or pattern of interest. Throughout this document, faces are used as the exemplary objects or patterns. It is to be appreciated, however, that the classifier can be used to detect other objects or patterns.

[0024] Conceptually, classifier 10 is implemented as a SVM and works in the following way. Consider that each image patch is a 20×20 image patch. For each image patch, you want to determine whether the patch corresponds to a face or not. Each 20×20 image patch can be considered as a 400-dimensional vector. The idea is that for each of the 400-dimensional vectors (i.e. patches), you want to provide a classification output. To provide the classification output, each image patch has to be evaluated relative to a “space” that defines what is or is not a face.

[0025] Consider, for example, FIG. 2 which shows an exemplary 2-dimensional space having a number of points distributed throughout. These points constitute a training set that is used to train the classifier 10 (FIG. 1) so that it can be used to determine what is and is not a face. The points consist of faces (open circles) and non-faces (solid circles) as designated. The idea is to find an accurate decision boundary between the points corresponding to the faces and non-faces such that each of the image patches can be evaluated, in terms of the decision boundary, to ascertain whether it is or it not a face. The SVM is the mechanism through which this boundary is found.

[0026] After the classifier 10 is trained, through techniques that will be understood by those of skill in the art, a number of points are identified as “support vectors”. Typically, a large number of support vectors (e.g. 1000 or more) are identified. In the illustrated example, the support vectors are additionally encircled with a circle so that support vectors on the “face” side of the decision boundary consist of an encircled open circle, while support vectors on the “non-face” side of the decision boundary consist of an encircled solid circle. Because there are typically many support vectors, and because each individual image patch has to be evaluated in terms of all of the support vectors if a full SVM is used, computational overhead is quite large and runtime complexity is very high.

[0027] To address this situation, processing techniques have evolved that rely on a so-called “reduced set method” which provides reduced set vectors. A reduced set construction can provide far fewer vectors that need to be evaluated for any one image patch. In the FIG. 2 illustration, the reduced set vectors are indicated as having a large “X”. So then, to classify an image patch as a face or non-face using the reduced set method, far fewer vectors have to be evaluated. To date, though, all of the reduced set vectors are still evaluated, for each patch, to ascertain whether the patch is or is not a face. Although this technique reduces the complexity of using the full SVM, this is still more complex than desirable, particularly when considering runtime processing speed.

[0028] The mathematics of the SVM and reduced set method are discussed below in more detail.

Exemplary Computer System

[0029]FIG. 3 illustrates an example of a suitable computing environment 320 on which the inventive techniques described below can be implemented.

[0030] Exemplary computing environment 320 is only one example of a suitable computing environment and is not intended to suggest any limitation as to the scope of use or functionality of the described techniques. Neither should the computing environment 320 be interpreted as having any dependency or requirement relating to any one or combination of components illustrated in the exemplary computing environment 320.

[0031] The described techniques can be operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known computing systems, environments, and/or configurations that may be suitable for use with the described techniques include, but are not limited to, personal computers, server computers, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.

[0032] The described techniques can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The described techniques can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.

[0033] As shown in FIG. 3, the computing environment 320 includes a general-purpose computing device in the form of a computer 330. The components of computer 320 can include, by are not limited to, one or more processors or processing units 332, a system memory 334, and a bus 336 that couples various system components including the system memory 334 to the processor 332.

[0034] Bus 336 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnects (PCI) bus also known as Mezzanine bus.

[0035] Computer 330 typically includes a variety of computer readable media. Such media can be any available media that is accessible by computer 330, and includes both volatile and non-volatile media, removable and non-removable media.

[0036] In FIG. 3, the system memory includes computer readable media in the form of volatile memory, such as random access memory (RAM) 340, and/or non-volatile memory, such as read only memory (ROM) 338. A basic input/output system (BIOS) 342, containing the basic routines that help to transfer information between elements within computer 330, such as during start-up, is stored in ROM 338. RAM 340 typically contains data and/or program modules that are immediately accessible to and/or presently operated on by processor 332.

[0037] Computer 330 can further include other removable/non-removable, volatile/non-volatile computer storage media. By way of example only, FIG. 3 illustrates a hard disk drive 344 for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a “hard drive”), a magnetic disk drive 346 for reading from and writing to a removable, non-volatile magnetic disk 348 (e.g., a “floppy disk”), and an optical disk drive 350 for reading from or writing to a removable, non-volatile optical disk 352 such as a CD-ROM, DVD-ROM or other optical media. The hard disk drive 344, magnetic disk drive 346, and optical disk drive 350 are each connected to bus 336 by one or more interfaces 354.

[0038] The drives and their associated computer-readable media provide nonvolatile storage of computer readable instructions, data structures, program modules, and other data for computer 330. Although the exemplary environment described herein employs a hard disk, a removable magnetic disk 348 and a removable optical disk 352, it should be appreciated by those skilled in the art that other types of computer readable media which can store data that is accessible by a computer, such as magnetic cassettes, flash memory cards, digital video disks, random access memories (RAMs), read only memories (ROM), and the like, may also be used in the exemplary operating environment.

[0039] A number of program modules may be stored on the hard disk, magnetic disk 348, optical disk 352, ROM 338, or RAM 340, including, by way of example, and not limitation, an operating system 358, one or more application programs 360, other program modules 362, and program data 364.

[0040] A user can enter commands and information into computer 330 through input devices such as keyboard 366 and pointing device 368 (such as a “mouse”). Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, serial port, scanner, or the like. These and other input devices are connected to the processing unit 332 through an user input interface 370 that is coupled to bus 336, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB).

[0041] A monitor 372 or other type of display device is also connected to bus 336 via an interface, such as a video adapter 374. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers and printers, which may be connected through output peripheral interface 375.

[0042] Computer 330 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 382. Remote computer 382 may include many or all of the elements and features described herein relative to computer 330.

[0043] Logical connections shown in FIG. 3 are a local area network (LAN) 377 and a general wide area network (WAN) 379. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet.

[0044] When used in a LAN networking environment, the computer 330 is connected to LAN 377 network interface or adapter 386. When used in a WAN networking environment, the computer typically includes a modem 378 or other means for establishing communications over the WAN 379. The modem 378, which may be internal or external, may be connected to the system bus 336 via the user input interface 370, or other appropriate mechanism.

[0045] Depicted in FIG. 3, is a specific implementation of a WAN via the Internet. Over the Internet, computer 330 typically includes a modem 378 or other means for establishing communications over the Internet 380. Modem 378, which may be internal or external, is connected to bus 336 via interface 370.

[0046] In a networked environment, program modules depicted relative to the personal computer 330, or portions thereof, may be stored in a remote memory storage device. By way of example, and not limitation, FIG. 3 illustrates remote application programs 389 as residing on a memory device of remote computer 382. It will be appreciated that the network connections shown and described are exemplary and other means of establishing a communications link between the computers may be used.

[0047]FIG. 3 illustrates an example of a suitable operating environment 320 in which the described techniques can be implemented. Specifically, the described techniques can be implemented by any program 360-362 or operating system 358 in FIG. 3.

[0048] The operating environment is only an example of a suitable operating environment and is not intended to suggest any limitation as to the scope of use of functionality of the described techniques. Other well known computing systems, environments, and/or configurations that may be suitable for use with the described techniques include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, programmable consumer electronics, wireless communications equipment, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.

[0049] An implementation of the described techniques can be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Typically, the functionality of the program modules may be combined or distributed as desired in various embodiments.

[0050] An implementation of the described techniques can be stored on or transmitted across some form of computer readable media. Computer readable media can be any available media that can be accessed by a computer. By way of example, and not limitation, computer readable media may comprise computer storage media and communications media.

[0051] Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.

[0052] Communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared, and other wireless media. Combinations of any of the above are also included within the scope of computer readable media.

The Support Vector Algorithm

[0053] Support vector machines (SVMs) are known and are universal learning machines whose decision surface is parameterized by a set of support vectors (as diagrammatically indicated in FIG. 2), and by a set of corresponding weights. An SVM is also characterized by a kernel function. Choice of the kernel determines whether the resulting SVM is a polynomial classifier, a two-layer neural network, a radial basis function machine, or some other learning machine.

[0054] Support vector classifiers implicitly map the data (x_(l),y_(l)), . . . ,(x_(l),y_(l)) ∈χ×{±1} (in our case, χ⊂

^(N)) into a dot product space F via a (usually nonlinear) map Φ:χ→F, x

χ(x). F is often referred to as the “feature space”. Although F can be high-dimensional, it is usually not necessary to explicitly work in that space.

[0055] There exists a class of kernels k(x,x′) which can be shown to compute the dot products in associated feature spaces, i.e. k(x,x′)=(Φ(x)·Φ(x′)). The support vector algorithm computes a hyperplane which separates the data in F by a large margin. Once this geometrical problem is cast in terms of dot products, the kernel operation is used, and thus all computations in F are reduced to the evaluation of the kernel, as will be appreciated by those of skill in the art. It can be shown that the resulting training problem consists of computing (for some positive value of the parameter C determining the trade-off between margin maximization and training error minimization): $\begin{matrix} {{\max\limits_{\alpha}{\sum\limits_{i = 1}^{l}\alpha_{i}}} - {\frac{1}{2}{\sum\limits_{i,{j = 1}}^{l}{\alpha_{i}\alpha_{j}y_{i}y_{j}{k\left( {x_{i},x_{j}} \right)}}}}} & {{Equation}\quad 1} \end{matrix}$

[0056] subject to $\begin{matrix} {{0 \leq \alpha_{i} \leq C},{i = 1},\ldots \quad,l,{{\sum\limits_{i = 1}^{l}{\alpha_{i}y_{i}}} = 0},} & {{Equation}\quad 2} \end{matrix}$

[0057] and that the solution has an expansion: $\begin{matrix} {{f(x)} = {{{sgn}\left( {{\sum\limits_{i = 1}^{l}{\alpha_{i}y_{i}{k\left( {x,x_{i}} \right)}}} + b} \right)}.}} & {{Equation}\quad 3} \end{matrix}$

[0058] Those training examples x_(i) with α_(i)>0 are called Support Vectors.

[0059] Kernels commonly used include polynomials k(x,x′)=(x x′)^(d), which can be shown to map into a feature space spanned by all order d products of input features, and the Gaussian RBF kernel $\begin{matrix} {{k\left( {x,x^{\prime}} \right)} = {{\exp \left( \frac{- {{x - x^{\prime}}}^{2}}{2\sigma^{2}} \right)}.}} & {{Equation}\quad 4} \end{matrix}$

[0060] Performance-wise, they have been found to do similarly well. In the presently-described embodiment, we focus on the latter of the two.

COMPUTING FAST SUPPORT VECTOR EXPANSIONS

[0061] Assume we are given a vector Ψ∈F, expanded in images of input patterns x_(i)∈χ, $\begin{matrix} {{\Psi = {\sum\limits_{i = 1}^{N_{x}}{\alpha_{i}{\Phi \left( x_{i} \right)}}}},} & {{Equation}\quad 5} \end{matrix}$

[0062] with α

i ∈

, x _(i)∈χ. To reduce the complexity of evaluating it, one can approximate it by a reduced set expansion $\begin{matrix} {{\Psi^{\prime} = {\sum\limits_{i = 1}^{N_{z}}{\beta_{i}{\Phi \left( z_{i} \right)}}}},} & {{Equation}\quad 6} \end{matrix}$

[0063] with N_(z)<<N_(x), β_(i)∈

, and reduced set vectors z_(i)∈χ. To this end, one can minimize as follows: $\begin{matrix} \begin{matrix} {{{\Psi - \Psi^{\prime}}}^{2} = {{\sum\limits_{i,{j = 1}}^{N_{x}}{\alpha_{i}\alpha_{j}{k\left( {x_{i},x_{j}} \right)}}} + {\sum\limits_{i,{j = 1}}^{N_{z}}{\beta_{i}\beta_{j}{k\left( {z_{i},z_{j}} \right)}}} -}} \\ {{2{\sum\limits_{i = 1}^{N_{x}}{\sum\limits_{j = 1}^{N_{z}}{\alpha_{i}\beta_{j}{{k\left( {x_{i},z_{j}} \right)}.}}}}}} \end{matrix} & {{Equation}\quad 7} \end{matrix}$

[0064] This approach is known as the “reduced set method”. The key point of the reduced set method is that although Φ is not given explicitly, Equation 7 can be computed (and minimized) in terms of the kernel, as will be understood by those of skill in the art.

[0065] The sequential approach used here requires an extension of the reduced set method, to compute a whole sequence of reduced set approximations $\begin{matrix} {\Psi_{m}^{\prime} = {\sum\limits_{i = 1}^{m}{\beta_{m,i}{\Phi \left( z_{i} \right)}}}} & {{Equation}\quad 8} \end{matrix}$

[0066] for m=1, . . . , N_(z). The reduced set vectors z_(i) and the coefficients β_(i) are computed by iterative optimization as in Schölkopf et al., Input space vs. feature space in kernel-based methods, IEEE Transactions on Neural Networks, 10(5):1000-1017, 1999.

[0067] For the first vector, we need to approximate Ψ=Σ_(i=1) ^(N) ^(_(x)) α_(i)Φ(x_(i)) by Ψ′=βΦ(z) minimizing the distance ∥Ψ−Ψ′∥² between Ψand Ψ′, with respect to z, β, to give the first reduced set vector z_(i) and its coefficient β_(1,1), using a method described in Schölkopf et al., Input space vs. feature space in kernel-based methods, IEEE Transactions on Neural Networks, 10(5):1000-1017, 1999.

[0068] Recall that the aim of the reduced set algorithm is to approximate a vector Ψ as in Equation 5, by an expansion of the type in Equation 6, with N_(z)>1. The required higher order reduced set vectors z_(i), i>1 and their coefficients β_(i), are obtained in recursive fashion by defining a residual vector $\begin{matrix} {{\Psi_{m} = {\Psi - {\sum\limits_{i = 1}^{m - 1}{\beta_{{m - 1},i}{\Phi \left( z_{i} \right)}}}}},} & {{Equation}\quad 9} \end{matrix}$

[0069] where Ψ is the original feature-space vector defined in Equation 5. Then the procedure for obtaining the first reduced set vector z_(l) is repeated, now with Ψ_(m) in place of Ψ to obtain z_(m). However, the optimal β from this step is not used. Instead, optimal β_(m,i),i=1, . . . ,m are computed jointly as in Schölkopf et al., Input space vs. feature space in kernel-based methods, IEEE Transactions on Neural Networks, 10(5):1000-1017, 1999.

[0070] Thresholds

[0071] For any N_(z), the obtained expansion can be plugged into the SVM decision function (Equation 3) to yield f(x)=sgn(Σ_(j=1) ^(N) ^(_(z)) β_(j)k(x,z_(j))+b). It is, however, not optimal to simply re-use the offset b stemming from the original SV machine. Reduced set approximations of decision functions can be improved by recomputing the thresholds by based on the training set, or some validation set (as in Schölkopf et al., Input space vs. feature space in kernel-based methods, IEEE Transactions on Neural Networks, 10(5):1000-1017, 1999), to get $\begin{matrix} {{f_{N_{z}}(x)} = {{{sgn}\left( {{\sum\limits_{j = 1}^{N_{z}}{\beta_{j}{k\left( {x,z_{j}} \right)}}} + b_{N_{z}}} \right)}.}} & {{Equation}\quad 10} \end{matrix}$

[0072] This is especially true in the present setting, as will become clear in the following.

Face Detection by Sequential Evaluation

[0073] In the illustrated and described embodiment, a training set of face and non-face 20×20 image patches is used to train the SVM. At detection time, each pixel of an input image is a potential face center, hence the whole set of 20×20 overlapping patches surrounding each pixel must be evaluated. To detect faces at different scales an image pyramid is constructed. If w and h are the width and the height, respectively, of the input image, and L and s the number of subsampling levels and the subsampling rate, respectively, the total number of patches to be evaluated is N_(p)=Σ_(l=1) ^(L)whs^(2(l−1)). Evaluating the full SVM, or even the whole set of reduced set vectors on all patches would be undesirably slow. A large portion of the patches can, however, be easily classified using only a few reduced set vectors. Accordingly, the inventive technique about to be described can use less than all of the reduced set vectors to make a classification as to whether a patch is a face or a non-face.

[0074] Consider that, in the past and in accordance with the reduced set method, there may be 300 or so reduced set vectors after the processing described above. Each of these 300 or so reduced set vectors would have to be evaluated for each patch to classify the patch as a face or a non-face. This is very computationally intensive and slows the runtime classification process. In accordance with the inventive techniques about to be described, a first reduced set vector is used to test the patch to determine whether it can be classified as a face or a non-face. If it can be classified as a non-face, then the processing for that particular patch terminates and the next patch is tested. If, however, the first reduced set vector cannot classify the patch as a non-face, the first and second reduced set vectors are utilized to attempt to classify the patch as either a face or a non-face. Note that the result of applying the first reduced set vector can be stored in memory, so that the second pass only consists of evaluating the second reduced set vector. Processing continues until either, (1) the patch is classified as a non-face by using less than all of the reduced set vectors, or (2) the full SVM is applied on the patch, using Equation 3 above. If the evaluation is positive, the patch is classified as a face.

[0075]FIG. 4 is a flow diagram that describes steps in a method in accordance with the described embodiment. The method can be implemented in any suitable hardware, software, firmware, or combination thereof. Step 400 trains the support vector machine. Any suitable training techniques can be used. In the illustrated and described embodiment, training of the SVM can take place as described above. Note that this step can also involve retraining the SVM. For example, if the SVM misidentifies a face as a non-face, then the retraining of the SVM corrects this misidentification. Step 402 ascertains or calculates a collection of reduced set vectors. The mathematics of how this can be done is given above, and will be understood by those of skill in the art. It will be appreciated that the process by which the reduced set vectors are calculated orders them in a predetermined way. This predetermined ordering of the reduced set vectors is a direct manifestation of the way in which the reduced set vectors are calculated. Step 404 sequentially evaluates the reduced set vectors on each patch. In one implementation, the sequential evaluation of the reduced set vectors uses the vectors in their predetermined ordering. If one or more of the reduced set vectors can classify a patch as a non-face, then the process for that patch terminates. Accordingly, the runtime complexity of classification process can be dramatically reduced. For example, if only one reduced set vector can classify a patch as a non-face, then the processing associated with evaluating the remainder of the reduced set vectors for that patch can be eliminated.

[0076]FIG. 5 is a flow diagram that describes, in somewhat more detail, the sequential evaluation of reduced set vectors, in accordance with the described embodiment. Step 500 gets one of a number of images patches that are to be evaluated. Step 502 makes a first pass over the patch using only one reduced set vector for purposes of ascertaining whether the patch can be classified as a non-face. If, at step 504, the patch can be classified as a non-face, step 506 gets the next patch and returns to step 502, or quits if there are no more patches to evaluate. If, on the other hand, step 504 is not able to classify the patch as a non-face (i.e. no conclusion can be made), step 508 makes a pass over the patch using at least one additional reduced set vector. Note that the results of applying the previous reduced set vectors can be cached so that only the next reduced set vector(s) need to be applied. Step 510 ascertains whether this pass can classify the patch as a non-face. If it can, the method branches to step 506. If, however, step 510 cannot classify the patch as a non-face (i.e. no conclusion), then step 512 ascertains whether there are any additional reduced set vectors to use in the evaluation. If there are, the method returns to step 508 and makes another pass over the patch using at least one additional reduced set vector. If, on the other hand, no more reduced set vectors are available for use, step 514 evaluates the patch using the full support vector machine.

[0077] Mathematically, this can be represented by the following steps:

[0078] 1. Set a hierarchy level to m=1, where m represents the number of reduced set vectors that are being used.

[0079] 2. Evaluate y_(m)=sgn(Σ_(j=1) ^(m)β_(m,j)K_(j)+b_(m)), where K_(j)=k(x,z_(j)).

[0080] 3. If y_(m)<0, x is classified as a non-face and the algorithm stops; if y_(m)≧0, m is incremented. If m=N_(z) the algorithm stops, otherwise evaluation continues as in Step 2.

[0081] 4. If y_(j)≧0 and j=N_(z), the full SVM is applied on the patch x, using Equation 3 above. If the evaluation is positive, the patch is classified as a face.

[0082] One primary useful feature of this approach is that on average, relatively few kernels K_(j) have to be evaluated at any given image location—i.e., for most patches, the algorithm above stops at a level j<<N_(z). This speeds up the algorithm relative to the full reduced set (by more than an order of magnitude in the face classification experiments reported below). Note that in the case of gaussian kernels, the application of one reduced set vector amounts to a simple template matching operation.

[0083] Setting Offsets

[0084] The offsets b_(m) are fixed to obtain a desired point on the R.O.C. curve for the overall sequential scheme. Suppose an overall false negative rate v is required, then, given a “decay rate” α, we express υ as a geometric series by setting false negative rates υ_(m) for the mth level in the hierarchy to υ_(j)=αυ_(j−1) where υ₁=υ(1−α). Now each b_(m) is fixed to achieve the desired υ_(m) over a validation set. The free parameter α can now be set to maximize the overall true positive rate over the validation set. It is to be appreciated and understood that the described method of setting offsets, i.e. moving the decision boundary within the space that defines the faces and non-faces, can be accomplished in other ways.

Experimental Results

[0085] Initially the SVM was trained on 3600 frontal faces and 25000 non-face examples using Platt's Sequential Minimal Optimisation set forth in Platt, Fast training of support vector machines using sequential minimal optimization, In Schölkopf et al., Advances in Kernel Methods—Support Vector Learning, pages 185-208, Cambridge, Mass., 1999, MIT Press. The kernel used was Gaussian (Equation 4) with a standard deviation a of 3.5. The trade-off between margin maximization and training error minimization was set to C=1.

[0086] The non-face patches were taken randomly on a set of 1000 images containing no faces. To improve the performance of the classifier, a second bout of training was initiated: To decrease the number of false positives, the face detector was applied on a new set of 100 images which did not contain any faces. This generated 110000 false positive patches which were then added to the training. The SVM was then retrained.

[0087] The SVM selected 1742 support vectors. These were subsequently decreased to 60 reduced set vectors. The first ten reduced set vectors are shown in FIG. 6 at 600-618. Note that all vectors can be interpreted as either faces (e.g. the first one) or anti-faces (e.g. the second one).

[0088] Speed Improvement

[0089] At detection time, due to the sequential evaluation of the patches, very few reduced set vectors are applied. FIG. 7 shows the number of reduced set vectors evaluated per patches for different methods (SVM, RSM and SRSM (Sequential Reduced Set Machine)). The Full SVM and the RSM evaluate all their support or reduced set vectors on all the patches, while the SRSM uses on average only 2.8 reduced set vectors.

[0090]FIG. 8 shows the patches of an input image which remain after 1, 10, 20 and 30 sequential reduced set evaluations respectively at 800, 802, 804, 806, and 808.

[0091]FIG. 9 shows the number of reduced set vectors used to classify each patch of an image. The grey-level values of the pixels of the right image are proportional to the number of reduced set vectors used to classify the corresponding spot in the left image (note that the grey values are displayed at the center of the corresponding patches only). The uniform parts of the input image are easily rejected using a single reduced set vector, whereas the cluttered background requires more reduced set vectors. Note that very few patches needed all the reduced set vectors (only the patches containing the faces used all the reduced set vectors). The grey-level values of the pixels of image 900 are proportional to the number of reduced set vectors used to classify their associated patches of image 902. Light grey corresponds to the use of a single reduced vector, black to the use of all the vectors. Image 902 is a 153×263 image that contains 76,108 patches and was detected in 2.58 seconds. Image 904 is a 1280×1024 image that contains 2,562,592 patches and was detected in 80.1 seconds. Image 906 is a 601×444 image containing 518,801 patches detected in 27.9 seconds. Image 908 is a 320×240 image containing 147,289 patches detected in 10.4 seconds.

[0092] Accuracy

[0093]FIG. 10 shows a comparison of the accuracy of the different methods. These R.O.C. were computed on a test set containing 800 faces and 5000 non-faces. The accuracy of the SRSM (60 reduced set vectors) is very similar to the accuracy of the full SVM (1742 support vectors) and the RS (60 reduced set vectors) which perform equally well. In the leftmost graph of the figure, the R.O.C. for the SVM using 1742 support vectors is shown by the dotted line, the RS using 60 reduced vectors is shown by the dashed line, and the SRSM using also 60 reduced set vectors is shown by the solid line. Note that the SVM and RS curves are so close that they are not distinguishable. In the rightmost graph of the figure, the R.O.C. for an SRSM using one (dashed line), two (dash-dot line), three (dotted line) and four (solid line) reduced set vectors.

[0094] Results

[0095] To test this system, we used the Rowley et al. test set (Rowley et al., Neural network-based face detection, pami, 20:23-38, 1998 (which also includes test images from Sung et al. (Proceedings from Image Understanding Workshop, Monterey, Calif. November 1994) and Osuna et al. (Training support vector machine: An application to face detection, Proc. Computer Vision and Pattern Recognition '97, pages 130-136, 1997.

[0096] This set consists of 130 images containing 507 faces. We used a subsampling ratio of s=0.7, and the input images were subsampled as long as their width and height was larger than 20 (i.e. the number of levels in the subsampling pyramid is ${\min \left( {{{floor}\left( \frac{\log \left( {20\text{/}w} \right)}{\log \quad 0.7} \right)},{{floor}\left( \frac{\log \left( {20\text{/}h} \right)}{\log \quad 0.7} \right)}} \right)},$

[0097] where w and h are, respectively, the width and the height of the input image). We obtained a detection rate of 75.1% with a false detection rate of 0.001%.

Conclusion

[0098] Pattern detection systems usually have to scan large images. Therefore, the greatest challenge in engineering systems for real-world applications is that of reducing computational complexity. The inventive embodiment described above provides demonstrated computational savings in classification by the use of a sequential reduced set vector evaluation.

[0099] Although the invention has been described in language specific to structural features and/or methodological steps, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or steps described. Rather, the specific features and steps are disclosed as preferred forms of implementing the claimed invention. 

1. A pattern detection method comprising: approximating a decision surface in terms of multiple reduced set vectors; and determining the presence of a particular pattern in an input pattern by sequentially evaluating and summing the kernelized inner product of the reduced set vectors with the input pattern, such that if at any point the input pattern can be rejected as not comprising the particular pattern, no more reduced set vectors are used for that input pattern.
 2. The pattern detection method of claim 1, wherein the particular pattern comprises a face.
 3. The pattern detection method of claim 1 further comprising, if all of the reduced set vectors are used on the input pattern, and the input pattern is not rejected, using a full support vector machine to classify the input pattern.
 4. A software module comprising a pattern classifier that is programmed to implement the method of claim
 1. 5. A computer programmed with instructions which, when executed by the computer, implement the method of claim
 1. 6. One or more computer-readable media having computer-readable instructions thereon which, when executed by a computer, implement the method of claim
 1. 7. A face detection method comprising: approximating a decision surface in terms of multiple reduced set vectors; and determining the presence of a face in an input patch by sequentially evaluating and summing the kernelized inner product of the reduced set vectors with the input patch, such that if at any point the input patch can be rejected as not comprising a face, no more reduced set vectors are used for that input pattern; and if all of the reduced set vectors are used on the input patch, and the input patch is not rejected, using a full support vector machine to classify the input patch.
 8. A pattern detection method comprising: calculating a plurality of reduced set vectors that are to be used to classify various image patches; and using less than all of the reduced set vectors to classify an individual image patch of the various image patches.
 9. The method of claim 8, wherein said using comprises applying the reduced set vectors in a predetermined order.
 10. The method of claim 8, wherein said using comprises applying the reduced set vectors in a predetermined order that is established by the process through which the reduced set vectors were calculated.
 11. The method of claim 8, wherein said using comprises applying a first reduced set vector in an attempt to classify the individual image patch and, if successful, not applying any additional reduced set vectors.
 12. The method of claim 11, wherein said applying further comprises, if said applying with the first reduced set vector is unsuccessful in classifying the image patch, applying both the first reduced set vector and at least one additional reduced set vector in an attempt to classify the individual image patch.
 13. The method of claim 12 further comprising if said acts of applying are unsuccessful in classifying the image patch, then using a full support vector machine to classify the image patch.
 14. The method of claim 12 further comprising if said acts of applying are unsuccessful in classifying the image patch, and no additional reduced set vectors are left to use, then using a full support vector machine to classify the image patch.
 15. The method of claim 8, wherein said using comprises applying a first reduced set vector in a predetermined order in an attempt to classify the individual image patch and, if successful, not applying any additional reduced set vectors.
 16. The method of claim 8, wherein said using attempts to classify the individual image patch as a face or a non-face.
 17. A software module comprising a classifier that is programmed to implement the method of claim
 8. 18. A computer programmed with instructions which, when executed by the computer, implement the method of claim
 8. 19. One or more computer-readable media having computer-readable instructions thereon which, when executed by a computer, implement the method of claim
 8. 20. A pattern detection method comprising: training a support vector machine; ascertaining a collection of reduced set vectors from the trained support vector machine; and sequentially evaluating reduced set vectors of the collection in an attempt to classify an image patch such that if one or more, but less than all, of the reduced set vectors can classify the image patch, the image patch is classified and processing for the classified image patch terminates and, if more patches remain for processing, those image patches are processed.
 21. The method of claim 20, wherein said evaluating seeks to classify the image patch as a non-face.
 22. The method of claim 20 further comprising using a full support vector machine in the event that the image patch cannot be classified using the collection of reduced set vectors.
 23. A pattern detection method comprising: making a first pass over an image patch using only one reduced set vector of a number of possible reduced set vectors; ascertaining from said first pass, whether the image patch can be classified; and classifying the image patch, if the image patch can be classified.
 24. The method of claim 23, wherein said classifying comprises doing so without using any additional reduced set vectors for the image patch.
 25. The method of claim 23 further comprising caching a result of the first pass so that it can be used in at least one additional pass.
 26. The method of claim 23 further comprising, if the image patch cannot be classified using the one reduced set vector: making at least one additional pass over the image patch using at least one additional reduced set vector; and ascertaining from said at least one additional pass, whether the image patch can be classified.
 27. The method of claim 26 further comprising, if the image patch cannot be classified using said at least one additional reduced set vector, continuing to make additional passes over the patch using additional reduced set vectors until either: (1) the image patch can be classified, or (2) there are no additional reduced set vectors to use.
 28. The method of claim 27 further comprising, if there are no additional reduced set vectors to use, using a full support vector machine to classify the image patch.
 29. A face detection method comprising: making a first pass over an image patch using only one reduced set vector of a number of possible reduced set vectors; ascertaining from said first pass, whether the image patch can be classified as a non-face; and classifying the image patch as a non-face, if the image patch can be classified using the one reduced set vector.
 30. The face detection method of claim 29, wherein said classifying comprises doing so without using any additional reduced set vectors for the image patch.
 31. The face detection method of claim 29, further comprising, if the image patch cannot be classified as a non-face using the one reduced set vector: making at least one additional pass over the image patch using at least one additional reduced set vector; and ascertaining from said at least one additional pass, whether the image patch can be classified as a non-face.
 32. The face detection method of claim 31 further comprising, if the image patch cannot be classified as a non-face using said at least one additional reduced set vector, continuing to make additional passes over the patch using additional reduced set vectors until either: (1) the image patch can be classified as a non-face, or (2) there are no additional reduced set vectors to use.
 33. The face detection method of claim 32 further comprising, if there are no additional reduced set vectors to use, using a full support vector machine to classify the image patch as either a face or a non-face. 